package com.itheima.work1123;

import java.io.*;

public class Demo03 {
    //将素材用字符输出流写到文本文件中
    public static void main(String[] args) throws IOException {
        FileWriter portry = new FileWriter("poetry.txt");
        portry.write("登鹳雀楼" + System.lineSeparator());
        portry.write("王之涣" + System.lineSeparator());
        portry.write("白日依山尽，" + System.lineSeparator());
        portry.write("黄河入海流。" + System.lineSeparator());
        portry.write("欲穷千里目，" + System.lineSeparator());
        portry.write("更上一层楼。" + System.lineSeparator());
        portry.close();
    }

}
